package com.ktjiaoyu.crm.mapper;

import com.ktjiaoyu.crm.pojo.Right;
import com.ktjiaoyu.crm.pojo.Role;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface RightMapper extends JpaRepository<Right,Long> {
    /**
     * 根据角色查询权限
     * @param role
     * @return
     */
    public List<Right> findRightsByRolesOrderByRightCode(Role role);
}
